package com.ggb.smartstudy.mapper;

import com.ggb.smartstudy.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author gefangjie
 */
@Mapper
public interface RoleMapper {
    Role getRoleById(Integer id);

    List<Role> getAllRoles();

    void insertRole(Role role);

    void updateRole(Role role);

    void deleteRole(Integer id);
}
